package com.qjl.shopping.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

/**
 * @Author liguanghui
 * @Date 2023/5/1
 */
@Data
@TableName("user")
public class User {
    @TableId(value = "user_id", type = IdType.AUTO)
    private int id;
    @TableField("user_ac")
    private String ac;
    @JsonIgnore//jackson的忽略标记
    @TableField("user_pwd")
    private String pwd;
    @TableField("user_img")
    private String img;
    @TableField("user_money")
    private double money;
    @TableField("user_name")
    private String name;
}
